package com.example.login.controller;

import com.example.login.entity.Result;
import com.example.login.service.DormServiceImp;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import java.util.Map;

@RestController
public class DormController {
    @Resource
    private DormServiceImp dormServiceImp;
    @RequestMapping(value = "list")
    public Result queryBed(HttpServletRequest request, HttpServletResponse response,@RequestParam Map<String, String> queryInfo){
        return dormServiceImp.queryBeds(queryInfo);
    }
}
